public class Var extends Symbol
{
    int dim;
    
    public Var(String name, String type, int lexLevel, int dim)
    {
        super(name, "VAR", type, lexLevel);
        this.dim = dim;
    }

    public String entryString()
    {
        String str = "";
        if(lexLevel > 0)
            str += "-->";
        if(dim > 0)
            str+="N: " + name +" C: " + classification + " T: " + type + " D: " + dim + " ";
        else
            str+="N: " + name +" C: " + classification + " T: " + type;
        return str;
    }
}
